﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net.Appender;
using log4net.Core;

namespace Log4net
{
    public class AdvanceAdoAppender : AdoNetAppender
    {
        protected override void SendBuffer(LoggingEvent[] events)
        {
            if (Connection == null)
            {
                ErrorHandler.Error("Can not open database");
            }
            else
            {
                base.SendBuffer(events);
            }
        }
    }
}
